Get alert ID for updating existing alert status

Hi,

I’m using EVENT API V2 as part of our integration with PAGER DUTY and our internal system that knows how to alert product issues. As part of the integration, I creating new events. If our internal system detects that the problem has been resolved, I would like to update the alert status to resolved. To do this, I want to use this API (as you call it - ‘Update an alert’):

https://api.pagerduty.com/incidents/{id}/alerts/{alert_id}

I managed to obtain the incident ID by “List incidents API” as I filtered by the alert dedup key.
Now my question is such, do I have a way to get the alert id? I searched in your documents and found no way to get the alert id so I can update it to resolved.
Or do you have another way to update alert status to ‘Resolved’ ?

Thanks!

Hi Liron,

Thank you for reaching out to us. You can get the Ids for an incident’s alerts with the https://api.pagerduty.com /incidents/{id}/alerts endpoint. However, you do not need the alert ID in order to resolve an event.

To make a resolve request for any incident, you only need the routing_key and dedup_key for the original event. This is explained in a bit more detail in our Events API V2 documentation.

If you have any further questions, please don’t hesitate to reach out.

Cheers,